import request from '@/utils/request'

export default {
  //生成统计数据
  createByDay(day) {
    return request({
      url: `/staService/statisticsDaily/createStatisticsByDay/${day}`,
      method: 'post'
    })
  },

  //统计数据图表显示
  showData(searchObj) {
    return request({
      url: `/staService/statisticsDaily/showChart/${searchObj.type}/${searchObj.begin}/${searchObj.end}`,
      method: 'get'
    })
  },
}
